import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import '@/style/basic.less' // 公共less文件目录
// import '@/style/basic2.scss' // scss 文件目录

import ECharts from 'vue-echarts'
import { use } from 'echarts/core'
// import ECharts modules manually to reduce bundle size
import { CanvasRenderer } from 'echarts/renderers'
import { PieChart } from 'echarts/charts'
import { GridComponent } from 'echarts/components'

use([CanvasRenderer, PieChart, GridComponent])

const app = createApp(App)

// Element
import ElementPlus from 'element-plus'
import 'dayjs/locale/zh-cn'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import 'element-plus/lib/theme-chalk/index.css'
app.use(ElementPlus, { locale })

app.use(router)
app.component('v-chart', ECharts)
app.mount('#app')
